<template>
  <div>
      
    <el-table 
    :data="result.tableData" 
    style="width: 100%" 
    row-key="id">
      <el-table-column label="病历号" width="100" prop="id"></el-table-column>
      <el-table-column label="姓名" width="100" prop="name"></el-table-column>
      <el-table-column label="性别" width="50" prop="gender"></el-table-column>
      <el-table-column label="证件号码" width="180" prop="idno"></el-table-column>
        <el-table-column label="科室" width="100" prop="deptId"></el-table-column>
        <el-table-column label="医生" width="100" prop="doctorId"></el-table-column>
        <el-table-column label="挂号时间" width="180" prop="createtime"></el-table-column>
      
    </el-table>
  </div>
</template>

<script>
export default {
    name: 'RegistList',
    data(){
        return {
            result:{
                tableData:[]
            },
            search:{
                name:''
            }
        }
    },
    methods:{
        //获取已挂号数据
        getData(){
            this.axios.get('/register/list',response => {
                this.result.tableData = response.obj
            },{active:1,withPage:0})
        }
    },
    created(){
        this.getData()
    }
}
</script>

<style>

</style>